<?php
namespace app\index\controller;

use think\Controller;
use think\View;
use Jssdk\JSSDK;

class Service extends Common {
    /**
     * 在线服务
     * @return \think\response\View
     */
    public function index() {
        return view();
    }

    /**
     * 会议管理
     * @return \think\response\View
     */
    public function conference() {
        return view();
    }

    /**
     * 资料下载
     * @return \think\response\View
     */
    public function download() {
        $data = db('download')->where(['delete' => 0])->order('create_time desc')->select();

        $this->assign('data', $data);
        return view();
    }

    public function test(){
        $str = "湘酒协【2017】08号--关于召开协会四届三次会长办公会议的通知";
        $str_len = mb_strlen($str,'UTF-8');
        $res2 = mb_substr($str, 0, 17, 'utf-8');
        echo $res2;

    }
}
